import Vue from "vue";
import VueRouter from "vue-router";


import Index from "../views/b_index.vue"
import B_classify from "../views/b_classify.vue"
import b_store from "../views/b_store.vue"

import Login from '../views/c_login.vue'
import Update from '../views/c_update.vue'
import c_my from "../views/c_my.vue"
import balance from "../views/c_balance.vue"
import problem from "../views/c_problem.vue"
import a_ from "../views/a_.vue";
import princess from '../views/c_princess.vue'
import jifen from '../views/c_intergal.vue'
import user from '../views/c_user.vue'
import address from '../views/c_address.vue'
import newlys from '../views/c_newly.vue'

Vue.use(VueRouter);

const routes = [
	{
		path: "/b_",
		name: "index",
		component: Index
	},
	{
		path: "/address",
		name: "address",
		component: address
	},
	{
		path: "/newlys",
		name: "newlys",
		component: newlys
	},
	{
		path:'/user',
		name:'user',
		component:user
	},
	{
		path: "/b_classify/:id",
		name: "classify",
		component: B_classify,
		props: true,
	},

	{
		path: "/store",
		name: "b_store",
		component: b_store,
	},

	{
		path: '/login',
		name: 'login',
		component: Login
	},
	{
		path: '/update',
		name: 'update',
		component: Update
	},
	{
		path: '/jifen',
		name: 'jifen',
		component: jifen
	},
	{
		path: '/balance',
		name: 'balance',
		component: balance
	},
	{
		path: '/problem',
		name: 'problem',
		component: problem
	},
	{
		path: '/princess',
		name: 'princess',
		component: princess
	},
	{
		path: '/my',
		name: 'my',
		component: c_my
	},
	{
		path: '/update',
		name: 'update',
		component: Update
	},
	{
		path: '/',
		name: 'a_',
		component: a_,
	},
	{
		path: "/indexcity",
		name: 'indexcity',
		component: () =>
			import("../views/a_indexCity.vue")
	},
	{
		path: "/ssHeader",
		name: 'ssHeader',
		component: () =>
			import("../views/a_sousuo.vue")
	},
];

const router = new VueRouter({
	routes
});
export default router;
